import { createApp } from 'vue';
import { createPinia } from 'pinia';
import App from './App.vue';
import router from './router';
import '@/assets/style/index.scss';
// pinia
// svg插件
// eslint-disable-next-line import/no-unresolved
import 'virtual:svg-icons-register';
// svg图标插件
import SvgIcon from './components/SvgIcon/SvgIcon.vue';
// eslint-disable-next-line import/order
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const app = createApp(App);
app.use(router);
app.use(createPinia());
app.component(SvgIcon);
// eslint-disable-next-line no-restricted-syntax
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.mount('#app');
